<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">
        <h3>{{ total|like|demo }}</h3>
    </div>
</body>
<script src="./vue.js"></script>
<script>
    new Vue({
        el: '#app',
        data() {
            return {
               num: 88888.888
            }
        },
        filters:{
            like(val){
                console.log(val);
                return val.toLocaleString()
            },
            demo(val){
                return val + '---' + new Date().getTime() ;
            }
        },
        computed:{
            total(){
                console.log(String(this.num).slice(0,5));
                return parseInt(this.num)
            }
        }
    })
</script>
</html>